﻿namespace Galaxy.Engine
{
    using System.Web.Mvc;
    using System;

    public class GalaxyController : Controller
    {
        protected ViewResult View<T>(object model)
        {
            dynamic view = Activator.CreateInstance<T>();
            view.SetModel(model);
            ViewBag.MainContent = view.Render();
            return base.View("~/Views/Host.aspx");
        }
    }
}
